<script type="text/javascript" charset="utf-8">
  document.getElementById("current_dir").innerHTML = "<%= File.dirname(file_name) %>";
</script>
